package com.ht.medicaltreatment.activity

import android.os.Parcel
import android.os.Parcelable
import android.view.View
import com.gym.baselib.base.BaseActivity
import com.ht.medicaltreatment.R
import kotlinx.android.synthetic.main.activity_change_sample.*

//修改和删除样本
class UpdateSampleActivity() :BaseActivity(), View.OnClickListener, Parcelable {
    constructor(parcel: Parcel) : this() {
    }

    override fun getLayoutId() = R.layout.activity_change_sample

    override fun init() {
        setTitle("编辑样本")
        btnDelete.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when(v){
            //删除
            btnDelete -> {}

            //修改
            btnUpdate -> {}
        }
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {

    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<UpdateSampleActivity> {
        override fun createFromParcel(parcel: Parcel): UpdateSampleActivity {
            return UpdateSampleActivity(parcel)
        }

        override fun newArray(size: Int): Array<UpdateSampleActivity?> {
            return arrayOfNulls(size)
        }
    }

}
